﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

class IdleState : Istate
{
    private enemy parent;
    public void enter(enemy parent)
    {
        this.parent = parent;
    }

    public void exit()
    {
        
    }

    public void update()
    {

        if (parent.MyTrgt != null)
        {
            parent.changeState(new MoveState());
        }
    }
}
